<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>上传图片</title>
</head>
<body>
    <form action="/upload" method="post" enctype="multipart/form-data">
        <input type="file" name="file" value="上传图片">
        <input type="submit" value="上传">
    </form>
<br>
    <form action="/upImg" method="post" enctype="multipart/form-data">
        <input type="file" name="file" value="上传图片">
        <input type="submit" value="上传">
    </form>
    <br>
    <br>
</body>
</html>
访问地址:
localhost:8080/upload.html